package com.xfyd.serviece.user.impl;

import com.xfyd.mapper.user.UserMapper;
import com.xfyd.model.user.User;
import com.xfyd.serviece.user.UserServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户
 * Created by hgg on 2017-02-04.
 */
@Service
public class UserService implements UserServiceI {

    @Autowired
    private UserMapper userMapper;

    /**
     * 所有用户
     * @return
     */
    public List<User> allUsers() {

        return userMapper.allUsers();
    }
}
